package com.api.league.service;

import com.api.core.service.Service;
import com.api.league.form.LeagueTransferForm;
import com.api.league.model.LeagueTransferRecord;
import com.api.league.vo.LeagueTransferRecordVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author RenQiang
 * @date 2021/6/2
 */
public interface LeagueTransferService extends Service<LeagueTransferRecord> {
    /**
     * 分页查询转会记录
     *
     * @param leagueId
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageInfo<LeagueTransferRecordVo> findByPage(Long leagueId, Integer pageNum, Integer pageSize);

    /**
     * 批量创建转会记录
     *
     * @param forms
     */
    void batchCreateTransferRecords(List<LeagueTransferForm> forms);
}
